package gs.android.calcfeud;

import android.graphics.Bitmap;
import android.graphics.Canvas;

public abstract class Sprite {
	private Bitmap bitmap;
	
	private float x, y, height, width;
	
	public Sprite(float x, float y, float height, float width, Bitmap b) {
		this.height = height;
		this.width = width;
		this.bitmap = b;
		this.x = x;
		this.y = y;
	}

	public float getX() {
		return x;
	}

	public void setX(float x) {
		this.x = x;
	}

	public float getY() {
		return y;
	}

	public void setY(float y) {
		this.y = y;
	}

	public float getHeight() {
		return GamePersistor.SCREEN_HEIGHT / 100f * height;
	}

	public void setHeight(float height) {
		this.height = height;
	}

	public float getWidth() {
		return GamePersistor.SCREEN_WIDTH / 100f * width;
	}

	public void setWidth(float width) {
		this.width = width;
	}

	public Bitmap getBitmap() {
		return bitmap;
	}

	public void setBitmap(Bitmap bitmap) {
		this.bitmap = bitmap;
	}

	public abstract void onDraw(Canvas c, int delta);
}